<html><head><title>FormatNumber</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">FormatNumber()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result$ = <font color="#006666"><b>FormatNumber</b></font>(Number.d [, NbDecimals [, DecimalPoint$ [, ThousandSeperator$]]])</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Format a number into money-like format. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>Number</i></td>
<td width="90%"> 
The number to format 

</td></tr>
<tr><td><i>NbDecimals (optional)</i></td>
<td> 
Number of decimals to display. 

</td></tr>
<tr><td><i>DecimalPoint$ (optional)</i></td>
<td> 
The string to use to split the decimal and integer parts. It can be a multiple character string. Default value is &quot;.&quot;. 

</td></tr>
<tr><td><i>ThousandSeperator$ (optional)</i></td>
<td> 
The string to use to separate thousands. It can be a multiple character string. Default value is &quot;,&quot;. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

The formated number. 

</blockquote><p><b>Example</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#006666">Debug</font></b> <font color="#006666">FormatNumber</font>(125400.25) <font color="#006666">; Will display: 125,000.25</font>
</font></pre>

</blockquote><p><b>See Also</b></p><blockquote>

<a href="str.html">Str()</a>, <a href="stru.html">StrU()</a>, <a href="strf.html">StrF()</a>, <a href="strd.html">StrD()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=findstring.html>FindString()</a> - <a href=index.html>String Index</a> - <a href=hex.html>Hex()</a> -><br><br></body></html>